<?php
$this->pageTitle=Yii::app()->name;
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/head.0.99.min.js');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/reset.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/basic.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/leaflet.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/jquery.wijmo-pro.all.3.20132.8.min.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/themes/arctic/jquery-wijmo.css');
?>

<body>
	<div id="splash-screen">
		<div id="loading-element"></div>
	</div>
	<div id="main-region"></div>
	<div id="save-dialog-region"></div>
	<div id="toolbar-dialog-region"></div>
</body>
<script type="application/javascript">
	head.js(
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery-1.9.1.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery-ui-1.10.3.custom.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery.wijmo-open.all.3.20132.8.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery.wijmo-pro.all.3.20132.8.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery-layout.1.3.0.30.79.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/json2.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/underscore.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.wreqr.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.babysitter.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.marionette.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/leaflet/leaflet.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/app.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/leaflet.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/layout.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/sidebar_layout.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/container.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/buttonbar.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/save_dialog.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/toolbar_dialog.js",
		function() {
			if (App.debug) console.log('App Start');
			App.MainApp.start();
	});
</script>
<?php echo $this->renderPartial('templates/main-layout', null, true, false); ?>
<?php echo $this->renderPartial('templates/sidebar-layout', null, true, false); ?>
<?php echo $this->renderPartial('templates/container-layout', null, true, false); ?>
<?php echo $this->renderPartial('templates/map-layout', null, true, false); ?>
<?php echo $this->renderPartial('templates/buttonbar-layout', null, true, false); ?>
<?php echo $this->renderPartial('templates/save-dialog-layout', null, true, false); ?>
<?php echo $this->renderPartial('templates/toolbar-dialog-layout', null, true, false); ?>